from django.contrib import admin
from django.urls import path, include

from apps.users import views

urlpatterns = [
    # 用户名验证
    path('usernames/<uname:username>/count/', views.UsernameCountView.as_view()),
    # 注册用户名
    path('register/',views.RegisterView.as_view()),
    # 登录
    path('login/',views.LoginView.as_view()),
    # 退出登录
    path('logout/',views.LoginOut.as_view()),
    # 验证是否登录
    path('info/',views.UserInfoView.as_view()),
    # 保存用户中心email
    path('emails/',views.EmailSaveView.as_view()),
    # 激活邮箱的路由
    path('emails/verification/', views.EmailVerifyView.as_view()),
]